package com.zqwm.fly.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * Created by lsh on 2017/7/11.
 * indexName 配置必须是全部小写，不然会出异常
 */
@Data
@Document(indexName = "zqwm",type = "article", shards = 1,replicas = 0, refreshInterval = "-1")
public class Article {
    private Integer id;

    private Integer userid;

    private Date modifytime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date publishtime;

    private String title;

    private Integer sectionid;

    private Integer good;

    private Integer top;

    private Integer topic;

    private String label;

    private String vo001;

    private Integer looksum;

    private String coverPicture;

    private String content;

    private String source;
}